﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TalentPools.Model;
using TalentPools.DAL;

namespace TalentPools.BLL
{
    public class RecordManager
    {
        /// <summary>
        /// 根据简历Id查询工作记录
        /// </summary>
        /// <param name="resumeId"></param>
        /// <returns></returns>
        public List<record> GetRecord(int resumeId)
        {
            return new RecordService().GetRecord(resumeId);
        }
        public record GetRecord(int resumeId, int recordId)
        {
            List<record> list = new RecordService().GetRecord(resumeId, recordId);
            if (list.Count==1)
            {
                return list[0];
            }
            else
            {
                return null;
            }
        }
        public bool DeleteRecord(int recordId)
        {
            return new RecordService().DeleteRecord(recordId);
        }
        public bool DeleteRecord1(int resumeId)
        {
            return new RecordService().DeleteRecord1(resumeId);
        }
    }
}
